#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<assert.h>
char* my_strcpy(char* a,const char* b)    //返回类型为char*,可实现链式访问
{                                          //const char* b，*b不可更改，防止用户输错数组
	assert(a);
	assert(b);                    
	char* ret = a;
	while(*a++=*b++)
	{ 
		;
	}
	return ret;
}
int main()
{
	char a[12] = "asfgdsg";
	char b[7] = "gaokao";
	printf("%s", my_strcpy(a, b));
	return 0;
}